package com.ssmTest.dao;

import com.ssmTest.model.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IOrderDao {
    int insertOrder(Order order);
    Order selectOrderByID(int id);
    List<Order> orderList(int toexamine);
    List<Order> orderLists();
    List<Order> selectOrderByDate(@Param("startdate") String startdate, @Param("enddate") String enddate);
    int numberOfOrder(@Param("startdate")String startdate,@Param("enddate")String enddate);

    List<Order> selectOrders(@Param("second_party")int second_party,@Param("start")int start,@Param("end")int end);
    List<Order> selectOrder(@Param("first_party")int second_party,@Param("start")int start,@Param("end")int end);

    List<Order> selectByPersionalId(int personal_id);

    void updateOrderToexamine(@Param("id")int id,@Param("toexamine")int toexamine);
}
